package cn.tedu.spring.eg3;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestShop {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext("cn.tedu.spring.eg3");
        Shop shop = context.getBean(Shop.class);
        //4.使用阶段
        System.out.println("4");
        //关闭Ioc容器
        context.close();
    }
}
